home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Re FW_CString.1 < prev    next >
Encoding:
Internet Message Format  |  1996-08-20  |  697 b   |  [TEXT/ttxt]

  1. Subject:     Re: FW_CString
  2. Sent:        8/20/96 9:45 AM
  3. Received:    8/20/96 9:16 AM
  4. From:        Scott Adler, sadler@spss.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >
  9. >There does not appear to be a coversion for FW_CString to and from a
  10. >pascal string.  Why is that?  After all this is the Mac!
  11. >
  12. >Walter
  13.  
  14. To get a pascal string from a FW_CString use:
  15.  
  16.  FW_CString::ExportPascal(FW_PascalChar *buffer)
  17.  
  18.  
  19. To make a FW_CString from a pascal string I guess you could use the 
  20. constructor:
  21.  
  22. FW_CString(const char * text, FW_ByteCount byteLength)
  23.  
  24. but I haven't tried it yet.
  25.  
  26. -Scott Adler
  27. sadler@spss.com
  28.